package com.gg.user.gguser.dao;

import org.apache.ibatis.annotations.*;

/**
 * @author yangxinlei
 * @date 2020/4/10
 */

@Mapper
public interface GgBindingDaoMapper {

    //插入绑定关系
    @Insert("insert into gg_binding(gg_b_d_user_id, gg_b_b_user_id) values (#{ggBDUserId}, #{ggBBUserId})")
    Integer bindingUser(@Param("ggBDUserId")String ggBDUserId, @Param("ggBBUserId")String ggBBUserId);

    @Select("select count(*) from gg_binding where gg_b_d_user_id=#{userId} and gg_b_b_user_id = #{wuserId}")
    Integer getCountBinding(@Param("userId")String userId,@Param("wuserId")String wuserId);

}
